Documents for PDF, .NET Edition Documentation
TryGetValue Method (OwnedKeyedCollection<TKey,TItem>)

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > OwnedKeyedCollection<TKey,TItem> Class : TryGetValue Method
The key of the item.
The item or default value if not found.
Get an item with specified key.
Syntax
'Declaration
 
Public Function TryGetValue( _
   ByVal key As TKey, _
   ByRef item As TItem _
) As System.Boolean
public System.bool TryGetValue( 
   TKey key,
   out TItem item
)

Parameters

key
The key of the item.
item
The item or default value if not found.

Return Value

true if item was found, false otherwise.
See Also

Reference

OwnedKeyedCollection<TKey,TItem> Class
OwnedKeyedCollection<TKey,TItem> Members